package com.uusee.shipshape.gt.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "ss_gt_source_site")
@SuppressWarnings("serial")
public class SourceSite implements Serializable {
	@Id
	@Column(name = "site_code")
	private String siteCode;

	@Column(name = "site_name")
	private String siteName;

	@Column(name = "site_home")
	private String siteHome;

	public String getSiteCode() {
		return siteCode;
	}

	public void setSiteCode(String siteCode) {
		this.siteCode = siteCode;
	}

	public String getSiteName() {
		return siteName;
	}

	public void setSiteName(String siteName) {
		this.siteName = siteName;
	}

	public String getSiteHome() {
		return siteHome;
	}

	public void setSiteHome(String siteHome) {
		this.siteHome = siteHome;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((siteCode == null) ? 0 : siteCode.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SourceSite other = (SourceSite) obj;
		if (siteCode == null) {
			if (other.siteCode != null)
				return false;
		} else if (!siteCode.equals(other.siteCode))
			return false;
		return true;
	}
}
